.class Lcom/a/a/f;
.super Ljava/lang/Object;
.source "WebSocketClient.java"

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/a/a/d;


# direct methods
.method constructor <init>(Lcom/a/a/d;)V
    .locals 0
    .parameter

    .prologue
    .line 183
    iput-object p1, p0, Lcom/a/a/f;->a:Lcom/a/a/d;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 3

    .prologue
    .line 188
    :try_start_0
    iget-object v0, p0, Lcom/a/a/f;->a:Lcom/a/a/d;

    invoke-static {v0}, Lcom/a/a/d;->a(Lcom/a/a/d;)Ljava/lang/Object;

    move-result-object v1

    monitor-enter v1
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 189
    :try_start_1
    iget-object v0, p0, Lcom/a/a/f;->a:Lcom/a/a/d;

    invoke-static {v0}, Lcom/a/a/d;->e(Lcom/a/a/d;)Ljava/net/Socket;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 190
    iget-object v0, p0, Lcom/a/a/f;->a:Lcom/a/a/d;

    invoke-static {v0}, Lcom/a/a/d;->e(Lcom/a/a/d;)Ljava/net/Socket;

    move-result-object v0

    invoke-virtual {v0}, Ljava/net/Socket;->close()V

    .line 191
    iget-object v0, p0, Lcom/a/a/f;->a:Lcom/a/a/d;

    const/4 v2, 0x0

    invoke-static {v0, v2}, Lcom/a/a/d;->a(Lcom/a/a/d;Ljava/net/Socket;)Ljava/net/Socket;

    .line 193
    :cond_0
    monitor-exit v1

    .line 198
    :goto_0
    return-void

    .line 193
    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :try_start_2
    throw v0
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0

    .line 194
    :catch_0
    move-exception v0

    .line 195
    const-string v1, "WebSocketClient"

    const-string v2, "Error while disconnecting"

    invoke-static {v1, v2, v0}, Lcom/facebook/e/a/a;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 196
    iget-object v1, p0, Lcom/a/a/f;->a:Lcom/a/a/d;

    invoke-static {v1}, Lcom/a/a/d;->g(Lcom/a/a/d;)Lcom/a/a/i;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/a/a/i;->onError(Ljava/lang/Exception;)V

    goto :goto_0
.end method
